package org.gd.hellojavacore.currency;

import java.util.Currency;
import java.util.Locale;

/**
 * @author Gorhover
 */
public class App {

    public static void main(String ... args) {
        Locale locale = new Locale("uk", "UA");
        Currency currency = Currency.getInstance(locale);

        System.out.println("getCurrencyCode: " + currency.getCurrencyCode());
        System.out.println("toString: " + currency.toString());
        System.out.println("getDefaultFractionDigits: "  + currency.getDefaultFractionDigits());
        System.out.println("currency.getDisplayName: " + currency.getDisplayName(locale));

        System.out.println("getNumericCode: " + currency.getNumericCode());


        System.out.println(Currency.getInstance("UAH"));

    }
}
